package com.aqie.appletserver.bean.request;

import com.aqie.appletserver.utils.StringUtils;
import lombok.Data;

import static com.aqie.appletserver.bean.enumclass.VoiceFormat.AAC;

@Data
public class TencentVoiceTranslateRequest {
    private int app_id = 2130748506;

    private int time_stamp = (int)(System.currentTimeMillis() / 1000);

    private String nonce_str = StringUtils.getUUID();


    private int format = AAC.getCode();

    // 分片偏移量
    private int seq = 0;

    // 是否是结束分片
    private int end = 1;

    private String session_id = "aqieApplletServer";

    // 语音分片数据的Base64编码，非空且长度上限8MB
    private String speech_chunk;

    private String source = "zh";

    private String target = "en";

    public static void main(String[] args) {
        System.out.println(StringUtils.getUUID());
        System.out.println(AAC.getCode());
    }

}
